#region History

/* -------------------------------------------------------------------------------- 
 * Project Name: JobBoard Enterprise
 * Module: Jb.Web 
 * Name: Contact.cs
 * Purpose: ViewModel class for Contact
 *                   
 * Author: Md. Hassanur Rahman
 * Language: C# SDK Version 4.0
 * --------------------------------------------------------------------------------
 * Change History:
 * Version: 1.0    MHR  08/13/2012
 * Description: Initial Development
 * -------------------------------------------------------------------------------- */

#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;


namespace Jb.Web.ViewModels
{
    [Serializable]
	public class ContactViewModel : BaseViewModel
	{
        /// <summary>
        /// Gets or sets the ID
        /// </summary>
        public int ID { get; set; }

        [Required(ErrorMessage = "Please Select a Company")]
        [Display(Name = "Company")]
        public int CompanyID { get; set; }

        [Required(ErrorMessage = "Please Enter a Name")]
        [StringLength(150, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Name")]
        public String Name { get; set; }

        [Required(ErrorMessage = "Please Enter a Gender")]
        [StringLength(1, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Gender")]
        public String Gender { get; set; }

        [Required(ErrorMessage = "Please Select an Address")]
        [Display(Name = "Address")]
        public AddressViewModel Address { get; set; }

        [Display(Name = "Date Of Birth")]
        public String DateOfBirth { get; set; }

        [Required(ErrorMessage = "Please Choose Is Active?")]
        [Display(Name = "Is Active")]
        public String IsActive { get; set; }

        //[Required(ErrorMessage = "Please Choose Is Deleted?")]
        [Display(Name = "Is Deleted")]
        public String IsDeleted { get; set; }

        [StringLength(100, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Father Name")]
        public String FatherName { get; set; }

        [StringLength(100, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Mother Name")]
        public String MotherName { get; set; }

        [StringLength(100, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Spouce Name")]
        public String SpouceName { get; set; }

        //[Required(ErrorMessage = "Please Enter a Created On")]
        [Display(Name = "Created On")]
        public String CreatedOn { get; set; }

        //[Required(ErrorMessage = "Please Enter a Modified On")]
        [Display(Name = "Modified On")]
        public String ModifiedOn { get; set; }
	}
}

